<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="<%=path%>/js/jquery.min.js"></script>

	<link rel="stylesheet" type="text/css" href="<%=path%>/jsplug/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=path%>/jsplug/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="<%=path%>/jsplug/easyui/demo/demo.css">
	<script type="text/javascript" src="<%=path%>/jsplug/easyui/jquery.easyui.min.js"></script>
</head>
<body>
	<h2>Editable Tree</h2>
	<div class="demo-info" style="margin-bottom:10px">
		<div class="demo-tip icon-tip"></div>
		<div>Click the node to begin edit, press enter key to stop edit or esc key to cancel edit.</div>
	</div>
	
	<ul id="tt" class="easyui-tree" data-options="url:'<%=path%>/jsplug/easyui/demo/tree_data.json',animate:true,
			onClick:function(node){}"
	></ul>
	
	<br/>
	
	<ul id="tt2"></ul>
	<script type="text/javascript">
	 $(function(){  
            $('#tt2').tree({  
                url: 'treeServer.jsp',  
                onClick:function(node){  
                  //  alert('you click '+node.text);  
                }  
            });  
        }); 
	</script>
</body>
</html>